32c1d3cf7b57882f96a28ef2c542b1fe8404235c,src/main/java/me/nallar/modpatcher/ModPatcher.java,ModPatcher,addToCurrentClassLoader,#,221
Before Change
Set<String> invalidClasses = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, lcl, "invalidClasses");
Set<String> negativeResources = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, lcl, "negativeResourceCache");
invalidClasses.removeIf(ModPatcher::removeModPatcherEntries);
negativeResources.removeIf(ModPatcher::removeModPatcherEntries);
log.trace("Loaded class: " + Class.forName(MODPATCHER_PACKAGE + ".ModPatcherLoadHook"));
After Change
//and that's not always true either
//noinspection ConstantConditions
if (!cclInvalidNegativeCleared) {
Set<String> invalidClasses = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, lcl, "invalidClasses");
Set<String> negativeResources = ReflectionHelper.getPrivateValue(LaunchClassLoader.class, lcl, "negativeResourceCache");
invalidClasses.removeIf(ModPatcher::removeModPatcherEntries);
negativeResources.removeIf(ModPatcher::removeModPatcherEntries);
}